package org.brownflat.watergate.domain;

/**
 * <p>&copy Rupert Jones 2012</p>
 *
 * @author rup
 */
public class BranchBuilder extends AbstractBuilder<Branch> {
    public BranchBuilder() {
        super(new Branch());
    }

    public BranchBuilder withName(String name) {
        getEntity().setName(name);
        return this;
    }

    public BranchBuilder withRepository(Repository repository) {
        getEntity().setRepository(repository);
        return this;
    }

    public BranchBuilder withCommit(Commit commit) {
        getEntity().addCommit(commit);
        return this;
    }

    public BranchBuilder withPath(String path) {
        getEntity().setPath(path);
        return this;
    }
}
